<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<div class="topHeader">
  <div class="wrap960">
		<!-- 快速链接 S-->
    	<ul class="sg_tits2 fr">
			<li class="noPadd"><a href="javascript:void(0)" onclick="SetHome(this,'http://localhost/chemSearch/');" target="_self">加入收藏</a></li>
		</ul>
<%  
	
	if(session.getAttribute("userLogin")==null){ %>
		<div class="fl" id="loginF">
			<span class="welcome2">用户快速登陆</span>
			<!-- 选择去向 S-->
			<div class="hasGone">
				<form method="post" target="_self" name="login_form" id="login_form" action="#">
				<!-- 登录前显示、登录后隐藏 S-->
				<div class="fl">
					<input class="inp2 w100 colGray" name="user" id="login_user" value="用户名" onfocus="if(this.value == '用户名'){this.value = '';$(this).removeClass('colGray');}" onblur="if(this.value == ''){this.value = '用户名';$(this).addClass('colGray');}" type="text">

                    <input style="display: block;" class="inp2 w85 colGray jsclass_pw_t" value="请输入密码" type="text">
                    <input class="inp2 w85 colGray jsclass_pw_p" name="pwd" id="login_pwd" style="display: none;" type="password">
                    
					<input name="method" value="checktop" type="hidden">
					<input name="returnUrl" id="returnUrl" value="" type="hidden">
					<input name="sign" value="s" type="hidden">
					<input style="display: none;" id="submit" type="submit">
				</div>
				<a href="javascript:void(0);" class="hbtnA" onclick="login();" target="_self" id="btn_login">登录</a>
			    </form>
		  </div>
			<!-- 选择去向 E-->
		</div>
<%}
	else {%>
		<!-- 登陆后状态 S-->
		<div class="fl" id="loginL">
			<!-- 登陆后 -->
			<span class="welcome2" id="welcomeText">您好，欢迎使用化学结构式检索系统</span>
			<!-- 选择去向 S-->
			<div class="hasGone">
				<a href="#" class="hbtnA" id="logoutBtn" target="_self">退出</a>		  </div>
			<!-- 选择去向 E-->
		</div>
	<%}
%>

 </div>
</div>